#!/usr/bin/env python

from distutils.core import setup
from distutils.extension import Extension
try:
    from Pyrex.Distutils import build_ext
    pyrex_mod = [Extension("sglibrary.rexlibrary",
                           ["sglibrary/rexlibrary.pyx"])]
except ImportError:
    print \
"""You do not have pyrex installed this may lead to
a reduction in performance. If the game runs too
slowly please install pyrex and recompile Krazy
Space Killyness"""
    build_ext = None
    pyrex_mod = None

setup(name = "SpaceGameLibrary",
      version="development",
      description="Vector and Actor classes",
      author="Adam Bark",
      author_email="apb_4@users.sourceforge.net",
      packages=["sglibrary"],
      ext_modules=pyrex_mod,
      cmdclass = {'build_ext': build_ext}
)
